package day_03;

import java.util.Random;
import java.util.Scanner;
import java.lang.Math;
/**
 * @ClassName Test04
 * @Description TODO
 * @Author hp
 * @Date 2021/6/4 11:28
 * @Version 1.0
 **/
public class Test04 {
    public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
        /*System.out.print("请输入一个分数:");
       int sorce = in.nextInt();*/

        /*if (sorce >= 60){
           System.out.println("合格");
       }else {
           System.out.println("不合格");
       }*/

        /*if (sorce < 0 || sorce>100){
            System.out.println("输入错误");
        }else if(sorce == 100){
            System.out.println("奖励一辆BMW");
        } else if (sorce > 80 && sorce <= 99){
            System.out.println("奖励一台Iphone7plus");
        }else if (sorce > 60 && sorce <= 80){
            System.out.println("奖励一台ipad");
        }else {
            System.out.println("啥都没有");
        }
        */

        /*int num1,num2,num3;
        System.out.print("请输入第一个数");
        num1 = in.nextInt();
        System.out.print("请输入第二个数");
        num2 = in.nextInt();
        System.out.print("请输入第三个数");
        num3 = in.nextInt();
        if (num1 >= num2){
            if (num1 >= num3){
                if (num2>=num3){
                    System.out.println(num1+","+num2+","+num3);
                }else {
                    System.out.println(num1+","+num3+","+num2);
                }
            }else {
                System.out.println(num3+","+num1+","+num2);
            }
        }else {
                if (num1>=num3){
                    System.out.println(num2+","+num1+","+num3);
                }else {
                    if (num2 >= num3){
                        System.out.println(num2+","+num3+","+num1);
                    }else {
                        System.out.println(num3+","+num2+","+num1);
                    }
                }
        }*/

        /*System.out.print("输入身高:");
        int height = in.nextInt();

        System.out.print("输入财富:");
        double money = in.nextDouble();

        System.out.print("输入是否帅:(true/false):");
        boolean b1 = in.nextBoolean();

        if(height>=180 && money >= 10000000 && b1){
            System.out.println("我一定要嫁给他!!!");
        }else if (height>=180 || money >= 10000000 || b1){
            System.out.println("嫁吧，比上不足，比下有余。");
        }else{
            System.out.println("不嫁");
        }*/

        /*   int a, b, c;
        double x1, x2;
        System.out.print("请输入a");
        a = in.nextInt();
        System.out.print("请输入b");
        b = in.nextInt();
        System.out.print("请输入c");
        c = in.nextInt();

        if (a != 0) {
            if (b * b - 4 * a * c > 0) {
                x1 = -b + Math.sqrt(b * b - 4 * a * c / (2 * a));
                x2 = -b - Math.sqrt(b * b - 4 * a * c / (2 * a));
                System.out.println("有两个解" + x1 + "," + x2);
            } else if (b * b - 4 * a * c == 0) {
                x1 = -(b / 2 * a);
                System.out.println("有一个解" + x1);
            } else {
                System.out.println("无解");
            }
        } else {
            if (b != 0) {
                System.out.println("有一个解" + (-(c / b)));
            }
        }*/

        /*   String str = "180";

        int rNum = (int) (Math.random() * 90 + 10);
        int rf = rNum / 10;
        int rs = rNum % 10;
        System.out.println("请输入一个两位数:");
        int num = in.nextInt();
        int nf = num / 10;
        int ns = num % 10;
        if (rNum == num) {
            System.out.println("奖金10000美元");
        } else if (rf == ns && rs == nf) {
            System.out.println("奖金3000美元");
        } else if (rf == nf || rs == ns) {
            System.out.println("奖金1000美元");
        } else if (rf == ns || rs == nf) {
            System.out.println("奖金500美元");
        } else {
            System.out.println("作废");
        }
        System.out.println(rNum);*/

        /*System.out.println("请输入一个数字:");

        int num = in.nextInt();

        switch (num) {
            case 1:
                System.out.println("壹");
                break;
            case 2:
                System.out.println("贰");
                break;
            case 3:
                System.out.println("叁");
                break;
            case 4:
                System.out.println("肆");
                break;
            case 5:
                System.out.println("伍");
                break;
            case 6:
                System.out.println("陆");
                break;
            case 7:
                System.out.println("柒");
                break;
            case 8:
                System.out.println("捌");
                break;
            case 9:
                System.out.println("玖");
                break;
            default:
                System.out.println("Others");
                break;
        }*/

        /*System.out.println("请输入一个数字:");

        int num = in.nextInt();

        switch (num) {
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期日");
                break;

            default:
                System.out.println("非法参数");
                break;
        }        */

        /*System.out.print("请输入年:");
        int year = in.nextInt();
        System.out.print("请输入月:");
        int month = in.nextInt();
        System.out.print("请输入日:");
        int day = in.nextInt();
        int sum = 0;

        if (month == 1) {
            System.out.println("这个日期是这年的第:" + day + "天");
        } else {
            for (int i = month; i != 0; i--) {

                if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 || i == 12) {
                    sum += 31;
                } else if (i == 4 || i == 6 || i == 9 || i == 11) {
                    sum += 30;
                } else {
                    if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
                        sum += 29;
                    } else {
                        sum += 28;
                    }
                }

            }
            System.out.println("这个日期是这年的第:" + sum + "天");

        }*/


        /*System.out.print("请输入年份:");
        int year = in.nextInt();
        int num = year % 12;
        System.out.println(num);
        switch (num) {
            case 0:
                System.out.println("🐒年");
                break;
            case 1:
                System.out.println("🐓年");
                break;

            case 2:
                System.out.println("🐕年");
                break;

            case 3:
                System.out.println("🐖年");
                break;


            case 4:
                System.out.println("🐀年");
                break;


            case 5:
                System.out.println("🐂年");
                break;

            case 6:
                System.out.println("🐅年");
                break;

            case 7:
                System.out.println("🐇年");
                break;

            case 8:
                System.out.println("🐉年");
                break;

            case 9:
                System.out.println("🐍年");
                break;

            case 10:
                System.out.println("🐎年");
                break;

            case 11:
                System.out.println("🐏年");
                break;

            default:
                System.out.println("输入有误");
                break;
        }*/

        /*Random random = new Random();
        int r1 = random.nextInt(7);
        int r2 = random.nextInt(7);
        int r3 = random.nextInt(7);
        System.out.println(r1 + "," + r2 + "," + r3);
        System.out.print("押(大/小/豹子):");
        String str = in.next();
        int sum = r1 + r2 + r3;
        if (r1 == r2 && r2 == r3) {
            if (str.equals("豹子")) {
                System.out.println("押中了");
            } else {
                System.out.println("没中");
            }
        } else if (sum > 9) {
            if (str.equals("大")) {
                System.out.println("押中了");
            } else {
                System.out.println("没中");
            }
        } else {
            if (str.equals("小")) {
                System.out.println("押中了");
            } else {
                System.out.println("没中");
            }
        }*/
    }
}
